package cn.wizzer.app.sys.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 系统收款银行卡
 */
@Data
@Table("sys_collect_card")
public class SysCollectCard extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("uuid()")})
    private String id;

    @Column
    @Comment("开户名")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String accountName;

    @Column
    @Comment("银行信息")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String bankLibId;

    @Column
    @Comment("卡号")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String no;


    @Column
    @Comment("是否禁用0否1是")
    @ColDefine(type = ColType.BOOLEAN)
    private boolean disabled;

}
